package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.StoreAd;
import com.ecoolex.hotel.saas.entity.StoreAdExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface StoreAdMapper {
    long countByExample(StoreAdExample example);

    int deleteByExample(StoreAdExample example);

    int deleteByPrimaryKey(Integer adId);

    int insert(StoreAd record);

    int insertSelective(@Param("record") StoreAd record, @Param("selective") StoreAd.Column ... selective);

    StoreAd selectOneByExample(StoreAdExample example);

    List<StoreAd> selectByExample(StoreAdExample example);

    StoreAd selectByPrimaryKey(Integer adId);

    StoreAd selectByPrimaryKeyWithLogicalDelete(@Param("adId") Integer adId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") StoreAd record, @Param("example") StoreAdExample example, @Param("selective") StoreAd.Column ... selective);

    int updateByExample(@Param("record") StoreAd record, @Param("example") StoreAdExample example);

    int updateByPrimaryKeySelective(@Param("record") StoreAd record, @Param("selective") StoreAd.Column ... selective);

    int updateByPrimaryKey(StoreAd record);

    int batchInsert(@Param("list") List<StoreAd> list);

    int batchInsertSelective(@Param("list") List<StoreAd> list, @Param("selective") StoreAd.Column ... selective);

    int logicalDeleteByExample(@Param("example") StoreAdExample example);

    int logicalDeleteByPrimaryKey(Integer adId);
}